//
//  PayPwdView.m
//  firstpoint
//
//  Created by 泽中 on 2017/7/30.
//  Copyright © 2017年 xzcysoft. All rights reserved.
//

#import "PayPwdView.h"

@implementation PayPwdView
- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.layer.cornerRadius=5;
        self.backgroundColor=[UIColor whiteColor];
        UILabel*lab=[[UILabel alloc]initWithFrame:CGRectMake(20, 20, 150, 18)];
        lab.text=@"支付密码";
        lab.textColor=[UIColor blackColor];
        [self addSubview:lab];
        _textField=[[UITextField alloc]initWithFrame:CGRectMake(20, 45, self.mj_w-40, 40)];
        _textField.layer.borderWidth=1;
        _textField.layer.borderColor=[UIColor lightGrayColor].CGColor;
        [_textField setSecureTextEntry:YES];

        [self addSubview:_textField];
        _quxiaoButton=[UIButton buttonWithType:UIButtonTypeCustom];
        _quxiaoButton.backgroundColor=LRRGBColor(152, 153, 154);
        [_quxiaoButton setTitle:@"取消" forState:0];
        _quxiaoButton.frame=CGRectMake(0, self.mj_h-50, self.mj_w/2-0.5, 50);
        [self addSubview:_quxiaoButton];
        
        _quedingButton=[UIButton buttonWithType:UIButtonTypeCustom];
        _quedingButton.backgroundColor=[UIColor orangeColor];
        [_quedingButton setTitle:@"确定" forState:0];
        _quedingButton.frame=CGRectMake(self.mj_w/2+0.5, self.mj_h-50, self.mj_w/2-0.5, 50);
        [self addSubview:_quedingButton];
        
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
